package org.yzh.rbac.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

public class Token {

    @ApiModelProperty("令牌")
    @JsonProperty("i")
    private int id;

    @ApiModelProperty("用户名")
    @JsonProperty("u")
    private String username;

    @ApiModelProperty("角色")
    @JsonProperty("r")
    private int[] roles;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int[] getRoles() {
        return roles;
    }

    public void setRoles(int[] roles) {
        this.roles = roles;
    }
}